import React from 'react';
import { axconst } from '@/shared/axconst';
import Search from './components/search';
import { AxStandardWideList } from '@/components/AxList/AxStandardWideList';
import { AxStandardCardButtonType, AxStandardCardFilterType } from '@/components/AxList/AxStandardLayout/data.d';

const Index: React.FC<any> = props => {
    /** 配置列 */
    const columns = [
        {
            title: '记录信息',
            dataIndex: 'orgName0',
            width: axconst.width.long,
        },
        {
            title: '使用金额',
            dataIndex: 'orgName1',
            width: axconst.width.fouronly,
        },
        {
            title: '可用金额',
            dataIndex: 'orgName6',
            width: axconst.width.fouronly,
        },
        {
            title: '使用时间',
            dataIndex: 'orgName3',
            width: axconst.width.time,
        },
    ];

    const data = {
        list: [{
            id: 0,
            orgName0: '探月采购主体购买燃料',
            orgName1: '10000',
            orgName2: '0',
            orgName3: '2020-01-02 11:00:00',
            orgName4: '张三',
            orgName6: '2000',
        }, {
            id: 1,
            orgName0: '探月采购主体购买燃料',
            orgName1: '20000',
            orgName2: '1000',
            orgName3: '2020-01-03 11:00:00',
            orgName4: '李四',
            orgName6: '2001',
        }]
    }

    /** 配置操作按钮 */
    const button: AxStandardCardButtonType[] = [];

    const filter: AxStandardCardFilterType[] = [];

    return (
        <>
            <AxStandardWideList
                columns={columns}
                button={button}
                data={data}
                filter={filter}
                AdvancedSearch={Search}
            />
        </>
    );
};

export default Index;
